// 引入vant组件
// 全部引入
// import { Button,Popup } from 'vant';
// 按需引入
import NavBar from "vant/lib/nav-bar";
import Tabbar from "vant/lib/tabbar";
import TabbarItem from "vant/lib/tabbar-item";
import Button from "vant/lib/button";
import Form from "vant/lib/form";
import Field from "vant/lib/field";
import Checkbox from "vant/lib/checkbox";
import RadioGroup from "vant/lib/radio-group";
import Radio from "vant/lib/radio";
import Image from "vant/lib/image";
import Divider from "vant/lib/divider";
import Toast from "vant/lib/toast";
import Icon from "vant/lib/icon";
import Cell from "vant/lib/cell";
import CellGroup from "vant/lib/cell-group";
import Row from "vant/lib/row";
import Col from "vant/lib/col";
import Dialog from "vant/lib/dialog";
import Search from "vant/lib/search";
import Swipe from "vant/lib/swipe";
import SwipeItem from "vant/lib/swipe-item";
import Grid from "vant/lib/grid";
import GridItem from "vant/lib/grid-item";
import Lazyload from "vant/lib/lazyload";
import List from "vant/lib/list";
import Sidebar from "vant/lib/sidebar";
import SidebarItem from "vant/lib/sidebar-item";
import Card from "vant/lib/card";
import PullRefresh from "vant/lib/pull-refresh";
import Stepper from "vant/lib/stepper";
import Badge from "vant/lib/badge";
import DropdownMenu from "vant/lib/dropdown-menu";
import DropdownItem from "vant/lib/dropdown-item";
import Tag from "vant/lib/tag";
import Tabs from "vant/lib/tabs";
import Tab from "vant/lib/tab";
import Popup from "vant/lib/popup";
import GoodsAction from "vant/lib/goods-action";
import GoodsActionButton from "vant/lib/goods-action-button";
import GoodsActionIcon from "vant/lib/goods-action-icon";
import SwipeCell from "vant/lib/swipe-cell";
import Empty from "vant/lib/empty";
import SubmitBar from "vant/lib/submit-bar";
import AddressList from "vant/lib/address-list";
import AddressEdit from "vant/lib/address-edit";
import Area from "vant/lib/area";
import Picker from "vant/lib/picker";
import Steps from "vant/lib/steps";
import Step from "vant/lib/step";
import Uploader from "vant/lib/uploader";
import Rate from "vant/lib/rate";
import Popover from "vant/lib/popover";
// 引入vant组件的样式
import 'vant/lib/nav-bar/style/less';
import 'vant/lib/tabbar/style/less';
import 'vant/lib/tabbar-item/style/less';
import 'vant/lib/button/style/less';
import 'vant/lib/form/style/less';
import 'vant/lib/field/style/less';
import 'vant/lib/checkbox/style/less';
import 'vant/lib/radio-group/style/less';
import 'vant/lib/radio/style/less';
import 'vant/lib/image/style/less';
import 'vant/lib/divider/style/less';
import 'vant/lib/toast/style/less';
import 'vant/lib/icon/style/less';
import 'vant/lib/cell/style/less';
import 'vant/lib/cell-group/style/less';
import 'vant/lib/row/style/less';
import 'vant/lib/col/style/less';
import 'vant/lib/dialog/style/less';
import 'vant/lib/search/style/less';
import 'vant/lib/swipe/style/less';
import 'vant/lib/swipe-item/style/less';
import 'vant/lib/grid/style/less';
import 'vant/lib/grid-item/style/less';
import 'vant/lib/list/style/less';
import 'vant/lib/sidebar/style/less';
import 'vant/lib/sidebar-item/style/less';
import 'vant/lib/card/style/less';
import 'vant/lib/pull-refresh/style/less';
import 'vant/lib/stepper/style/less';
import 'vant/lib/badge/style/less';
import 'vant/lib/dropdown-menu/style/less';
import 'vant/lib/dropdown-item/style/less';
import 'vant/lib/tag/style/less';
import 'vant/lib/tabs/style/less';
import 'vant/lib/tab/style/less';
import 'vant/lib/popup/style/less';
import 'vant/lib/goods-action/style/less';
import 'vant/lib/goods-action-button/style/less';
import 'vant/lib/goods-action-icon/style/less';
import 'vant/lib/swipe-cell/style/less';
import 'vant/lib/empty/style/less';
import 'vant/lib/address-list/style/less';
import 'vant/lib/address-edit/style/less';
import 'vant/lib/area/style/less';
import 'vant/lib/picker/style/less';
import 'vant/lib/steps/style/less';
import 'vant/lib/step/style/less';
import 'vant/lib/uploader/style/less';
import 'vant/lib/rate/style/less';
import 'vant/lib/popover/style/less';

// 把引入的vant组件注册成全局组件
// Vue.component(Button.name,Button);
// Vue.component(Popup.name,Popup);
export default {
    install(Vue) {
        Vue.use(NavBar);
        Vue.use(Tabbar);
        Vue.use(TabbarItem);
        Vue.use(Button);
        Vue.use(Form);
        Vue.use(Field);
        Vue.use(Checkbox);
        Vue.use(RadioGroup);
        Vue.use(Radio);
        Vue.use(Image);
        Vue.use(Divider);
        Vue.use(Toast);
        Vue.use(Icon);
        Vue.use(Cell);
        Vue.use(Row);
        Vue.use(Col);
        Vue.use(Dialog);
        Vue.use(Search);
        Vue.use(Swipe);
        Vue.use(SwipeItem);
        Vue.use(Grid);
        Vue.use(GridItem);
        Vue.use(Lazyload);
        Vue.use(List);
        Vue.use(Sidebar);
        Vue.use(SidebarItem);
        Vue.use(Card);
        Vue.use(PullRefresh);
        Vue.use(Stepper);
        Vue.use(Badge);
        Vue.use(DropdownMenu);
        Vue.use(DropdownItem);
        Vue.use(Tag);
        Vue.use(Tabs);
        Vue.use(Tab);
        Vue.use(Popup);
        Vue.use(GoodsAction);
        Vue.use(GoodsActionButton);
        Vue.use(GoodsActionIcon);
        Vue.use(SwipeCell);
        Vue.use(Empty);
        Vue.use(SubmitBar);
        Vue.use(AddressList);
        Vue.use(AddressEdit);
        Vue.use(CellGroup);
        Vue.use(Area);
        Vue.use(Picker);
        Vue.use(Steps);
        Vue.use(Step);
        Vue.use(Uploader);
        Vue.use(Rate);
        Vue.use(Popover);
    }
}